package com.jky.stmall.front.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
public class Order {
    private String id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;
    private Integer userId;
    private Integer addrId;//需要关联
    private Integer status;

    private Addr addr;//收货地址
    //关联订单详情
    //一个订单可以有多个详情
    private List<OrderDetail> orderDetails;
}
